package cn.tedu.eg1.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrdersController {
    @RequestMapping("/v1/orders/add")
    @ResponseBody
    public String createOrder(){
        return "创建订单成功";
    }
    @RequestMapping("/v1/orders/list")
    @ResponseBody
    public String getOrderList(){
        return "查看订单成功";
    }
    @RequestMapping("/v1/orders/delete")
    @ResponseBody
    public String deleteOrder(){
        return "删除订单成功";
    }
    @RequestMapping("/v1/orders/update")
    @ResponseBody
    public String changeOrderStatus(){
        return "修改订单状态成功";
    }

}
